package com.tracker
import grails.converters.JSON

class TimesController {
	
	TimesService timesService
	def getlist={
		println("TimesController Test")
		render timesService.getlist(params) as JSON		
	}
	
	def getelement={
		println(params)
		render timesService.getelement(params) as JSON		
	}
	
	def deleteElement={
		println(params)
		render timesService.deleteElement(params) as JSON		
	}
	def editElement={
		println(params)
		render timesService.editElement(params) as JSON
	}
	
	def addElement={
		println(params)
		render timesService.addElement(params) as JSON
	}
	
   // def index() { }
}
